<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<style type="text/css">
			div{
				width: 30px;
				height: 30px;
				background: pink;
				margin: 2px;
			}
			
		</style>
		<script src="js/jquery-1.12.4.min.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
		$(function(){
				$("div").click(function(){
					$(this).css({
						"background":"blue"
					})
					
				})
			})
		</script>
	</head>
	<body>
		<div>
			a
		</div>
		<div>
			a
		</div>
		<div>
			
		</div>
		<div>
			
		</div>
		<div class="div1">
			vcxvxvc
		</div>
	</body>
	<script type="text/javascript">
		$("div").click(function(){
			$(".div1").animate({
				"width":"1000px",
				"height":"1000px",
				"fontSize":'50px',
			},2000,function(){
				alert("动画执行完毕")
			})
		})
		$("div").click(function(){
			$(".div1").animate({
				"width":"20px",
				"height":"20px",
				"fontSize":'2px',
			},2000,function(){
				alert("动画缩小完毕")
			})
		})
		
	</script>
</html>
